public class Hello {

    public static void main(String[] args) {
        /**
         * 整型
         */
        //byte字节
        byte myByte = 127;
        //short类型
        short myShort = 32767;
        //int类型
        int myInt = 2147483647;
        //long 类型
        long myLong = 9223372036854775807L;
        System.out.println(myByte+"-"+myShort+"-"+myInt
        +"-"+myLong);

        /**
         * 浮点型
         */
        //float
        float myFloat = 3.14f;
        //double
        double myDouble = 3.14159265358979323;
        System.out.println(myFloat+"-"+myDouble);

        /**
         * 布尔型
         */
        boolean myBoolean = true;
        System.out.println(myBoolean);
        /**
         * 字符型
         */
        char myChar1 = 'A';
        char myChar2 = '\u0041'; //使用Unicode字符
        char myChar3 = '\''; //使用转义字符
        System.out.println(myChar1+"-"+myChar2+"-"+myChar3);
    }

}
